import java.util.Random;
import java.util.Scanner;

public class java_7_26 {
    //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
        public static void main10(String[] args) {

            Scanner scanner = new Scanner(System.in);
            int i = scanner.nextInt();

            int count;
            for(count = 0; i != 0; i >>= 1) {
                if ((i & 1) == 1) {
                    ++count;
                }
            }

            System.out.println(count);
        }

        public static void main(String[] args) {
            Random random = new Random();
            Scanner scanner = new Scanner(System.in);
            int num = random.nextInt(100);
            System.out.println(num);

            int n;
            do {
                System.out.println("请输入一个要猜的数字（1-100）");
                n = scanner.nextInt();
                if (n < num) {
                    System.out.println("猜小了");
                }

                if (n > num) {
                    System.out.println("猜大了");
                }
            } while(n != num);

            System.out.println("猜对了");
        }

        public static void main8(String[] args) {
            int i = 1;

            while(true) {
                while(i <= 100) {
                    if (i % 3 == 0 && i % 5 == 0) {
                        System.out.println(i);
                    }

                    if (i % 3 == 0 && i % 5 == 0) {
                        ++i;
                    } else {
                        ++i;
                    }
                }

                return;
            }
        }

        public static void main7(String[] args) {
            int sum = 0;

            for(int j = 1; j <= 5; ++j) {
                int i = 1;

                int ret;
                for(ret = 1; i <= j; ++i) {
                    ret *= i;
                }

                sum += ret;
            }

            System.out.println(sum);
        }

        public static void main5(String[] args) {
            int sum = 0;
            int jisum = 0;
            int ousum = 0;

            for(int i = 1; i <= 100; ++i) {
                sum += i;
                if (i % 2 == 0) {
                    ousum += i;
                }

                if (i % 2 == 1) {
                    jisum += i;
                }
            }

            System.out.println(sum);
            System.out.println(ousum);
            System.out.println(jisum);
        }

        public static void main6(String[] args) {
            int count = 0;

            for(int i = 1; i < 100; ++i) {
                int tmp = i % 10;
                if (tmp == 9) {
                    ++count;
                }

                int j = i - tmp;
                if (j == 90) {
                    ++count;
                }
            }

            System.out.println(count);
        }

        public static void main2(String[] args) {
            for(int i = 1000; i <= 2000; ++i) {
                if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) {
                    System.out.print(i + " ");
                }
            }

        }

        public static void main1(String[] args) {
            int i = 1;

            for(int j = 2; j < 101; ++j) {

                for(i = 2; i < j && j % i != 0; ++i) {
                }

                if (i == j) {
                    System.out.print(" " + j);
                }
            }

        }
    }


